package com.bwie.bwedu.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.bwie.bwedu.R;

import java.util.List;

/**
 * Created by Administrator on 2016/7/23.
 */
public class PersonalLvAdapter extends MyBaseAdapter<String> {

    public PersonalLvAdapter(Context context, List<String> list) {
        super(context, list);
    }

    @Override
    public View myView(int position, View convertView, ViewGroup parent) {
        ViewHolder holder;
        if (convertView==null){
            convertView=View.inflate(getContext(), R.layout.item_persoanl_lv,null);
            holder=new ViewHolder();
            holder.menu= (TextView) convertView.findViewById(R.id.item_personal_menu);
            convertView.setTag(holder);
        }else{
            holder= (ViewHolder) convertView.getTag();
        }
        holder.menu.setText(getList().get(position)+"");
        return convertView;
    }

    class ViewHolder{
        private TextView menu;
    }
}
